package partner_commerce

import (
	"gitee.com/theegg/go-brick/app/modules/partner_api/partner_commerce/partner_commerce_api"
	"github.com/gin-gonic/gin"
)

func InitPartnerCommerceRoute(routerGroup *gin.RouterGroup) {
	// 商城
	routerGroup.POST("/commerce/merchant/list", partner_commerce_api.GetMerchantsList)
	routerGroup.POST("/commerce/merchant/add", partner_commerce_api.MerchantsAdd)
	routerGroup.POST("/commerce/merchant/edit", partner_commerce_api.MerchantsAdd)
	routerGroup.POST("/commerce/merchant/del", partner_commerce_api.MerchantsDel)
	routerGroup.POST("/commerce/merchant/status", partner_commerce_api.MerchantsStatus)

	// 商城 - 订单
	routerGroup.POST("/commerce/order/list", partner_commerce_api.GetOrderList)
	routerGroup.POST("/commerce/order/Detail", partner_commerce_api.GetOrderDetail)
	routerGroup.POST("/commerce/order/status", partner_commerce_api.OrderStatus)

	// 商城 - 订单集合
	routerGroup.POST("/commerce/goods_set/list", partner_commerce_api.GetGoodsSetList)
	routerGroup.POST("/commerce/goods_set/add", partner_commerce_api.GoodsSetAdd)
	routerGroup.POST("/commerce/goods_set/edit", partner_commerce_api.GoodsSetAdd)
	routerGroup.POST("/commerce/goods_set/del", partner_commerce_api.GoodsSetDel)
	routerGroup.POST("/commerce/goods_set/status", partner_commerce_api.GoodsSetStatus)

	// 商城 - 商品
	routerGroup.POST("/commerce/goods/list", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/goods/add", partner_commerce_api.GoodsAdd)
	routerGroup.POST("/commerce/goods/edit", partner_commerce_api.GoodsAdd)
	routerGroup.POST("/commerce/goods/del", partner_commerce_api.GoodsDel)
	routerGroup.POST("/commerce/goods/status", partner_commerce_api.GoodsStatus)

	// 商城 - 品牌
	routerGroup.POST("/commerce/brand/list", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/brand/add", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/brand/edit", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/brand/del", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/brand/status", partner_commerce_api.GetGoodsList)

	// 商城 - 分类
	routerGroup.POST("/commerce/goods_category/list", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/goods_category/add", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/goods_category/edit", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/goods_category/del", partner_commerce_api.GetGoodsList)
	routerGroup.POST("/commerce/goods_category/status", partner_commerce_api.GetGoodsList)
}
